<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>茉德精品火锅</title>
<meta
	content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
	name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<link href="/carworld_weixin/bootstrap/css/bootstrap.css"
	rel="stylesheet">
<link href="/carworld_weixin/css/index-style.css" rel="stylesheet"
	type="text/css">
<script type="text/javascript"
	src="/carworld_weixin/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript"
	src="/carworld_weixin/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/carworld_weixin/js/slider.js"></script>
<script type="text/javascript" src="/carworld_weixin/js/touchSlider.js"></script>
<style type="text/css">
.tb960x90 {
	display: none !important;
	display: none
}
</style>
</head>
<body>
	<section class="aui-flexView">
		<section class="aui-scrollView">
			<div class="aui-header-auto">
				<img src="/carworld_weixin/images/mood_banner.png" width="100%"
					alt="">
			</div>
			<!-- <div class="aui-search-content">
				<div class="aui-search-box">
					<button type="button"
						style="background-color: #c18924; color: white;"
						class="btn btn-lg btn-block" id="order">一键点餐</button>
				</div>
			</div> -->
			<div class="m-slider m-slider-bos" data-ydui-slider="">
				<div class="slider-wrapper"
					style="transform: translate3d(-1686px, 0px, 0px); transition-duration: 500ms;">
					<div class="slider-item" style="width: 1686px;">
						<div class="aui-palace aui-palace-four clearfix">
							<a href="/carworld_weixin/" class="aui-palace-grid">
								<div class="aui-palace-grid-icon">
									<img src="/carworld_weixin/images/icon-png/guanwang.png" alt="">
								</div>
								<div class="aui-palace-grid-text">
									<h2>首页</h2>
									<h2>home</h2>
								</div>
							</a> <a href="/carworld_weixin/pages/page_reservation.html"
								class="aui-palace-grid">
								<div class="aui-palace-grid-icon">
									<img src="/carworld_weixin/images/icon-png/yuyue.png" alt="">
								</div>
								<div class="aui-palace-grid-text">
									<h2>在线预约</h2>
									<h2>online booking</h2>
								</div>
							</a> <a href="/carworld_weixin/pages/page_userCard/myVipCard.html"
								class="aui-palace-grid">
								<div class="aui-palace-grid-icon">
									<img src="/carworld_weixin/images/icon-png/huiyuanka.png"
										alt="">
								</div>
								<div class="aui-palace-grid-text">
									<h2>我的会员卡</h2>
									<h2>my vipCard</h2>
								</div>
							</a><a
								href="https://mp.weixin.qq.com/s/IQ4CpgbQSHShV67GppDD1Q"
								class="aui-palace-grid">
							<div class="aui-palace-grid-icon">
								<img src="/carworld_weixin/images/icon-png/zixun.png" alt="">
							</div>
							<div class="aui-palace-grid-text">
								<h2>最新资讯</h2>
								<h2>newest news</h2>
							</div>
						</a>
							<a
								href="/carworld_weixin/pages/page_userOrder/purchaseHistory.html"
								class="aui-palace-grid">
								<div class="aui-palace-grid-icon">
									<img src="/carworld_weixin/images/icon-png/record.png" alt="">
								</div>
								<div class="aui-palace-grid-text">
									<h2>消费记录</h2>
									<h2>records</h2>
								</div>
							</a> 
							<a id="apayurl" href="http://food.3kkk.xyz/paymodel/url/pay" class="aui-palace-grid">
								<div class="aui-palace-grid-icon">
									<img src="/carworld_weixin/images/icon-png/jiesuan.png"
										alt="">
								</div>
								<div class="aui-palace-grid-text">
									<h2>快速结算</h2>
									<h2>quick settlement</h2>
								</div>
							</a>  <a href="/carworld_weixin/pages/page_wifi.html"
								class="aui-palace-grid">
								<div class="aui-palace-grid-icon">
									<img src="/carworld_weixin/images/icon-png/wifi.png" alt="">
								</div>
								<div class="aui-palace-grid-text">
									<h2>一键WiFi</h2>
									<h2>WiFi</h2>
								</div>
							</a> <a href="/carworld_weixin/pages/page_advice.html"
								class="aui-palace-grid">
								<div class="aui-palace-grid-icon">
									<img src="/carworld_weixin/images/icon-png/icon-item-008.png"
										alt="">
								</div>
								<div class="aui-palace-grid-text">
									<h2>意见反馈</h2>
									<h2>feedback</h2>
								</div>
							</a>
						</div>
					</div>
				</div>
			</div>

			<!-- <div class="aui-search-content">
				<div class="aui-search-box">
					<button type="button" style="background-color: #ce9431;color:white;" class="btn btn-lg btn-block" id="order">一键点餐</button>
				</div>
			</div> -->


			<div class="img_gallery" id="commodity">
				<div class="main_img">
					<ul style="width: 330px; overflow: visible;">
						<li
							style="float: none; display: block; position: absolute; top: 0px; left: 0px; width: 330px;">
							<img src="/carworld_weixin/images/banner-pic/banner1.jpg?v=1576029220" alt="">
						</li>
						<li
							style="float: none; display: block; position: absolute; top: 0px; left: 330px; width: 330px;">
							<img src="/carworld_weixin/images/banner-pic/banner2.jpg?v=1576029220" alt="">
						</li>
						<li
							style="float: none; display: block; position: absolute; top: 0px; left: 660px; width: 330px;">
							<img src="/carworld_weixin/images/banner-pic/banner3.jpg?v=1576029220" alt="">
						</li>
						<li
							style="float: none; display: block; position: absolute; top: 0px; left: 990px; width: 330px;">
							<img src="/carworld_weixin/images/banner-pic/banner4.jpg?v=1576029220" alt="">
						</li>
						<li
							style="float: none; display: block; position: absolute; top: 0px; left: 1320px; width: 330px;">
							<img src="/carworld_weixin/images/banner-pic/banner5.jpg?v=1576029220" alt="">
						</li>
						<li
							style="float: none; display: block; position: absolute; top: 0px; left: 1650px; width: 330px;">
							<img src="/carworld_weixin/images/banner-pic/banner6.jpg?v=1576029220" alt="">
						</li>
					</ul>
				</div>
				<div class="img_font">
					<span style="display: inline;">1/6</span> <span
						style="display: none;">2/6</span> <span style="display: none;">3/6</span>
					<span style="display: none;">4/6</span> <span
						style="display: none;">5/6</span> <span style="display: none;">6/6</span>
				</div>
			</div>
		</section>
		<footer class="aui-footer aui-footer-fixed">
			<a href="/carworld_weixin/" class="aui-tabBar-item"> <span
				class="aui-tabBar-item-icon"> <i
					class="glyphicon glyphicon-home"></i>
			</span> <span class="aui-tabBar-item-text">首页</span><span class="aui-tabBar-item-text">home</span>
			</a> <a href="/carworld_weixin/pages/page_userCard/myVipCard.html"
				class="aui-tabBar-item "> <span class="aui-tabBar-item-icon">
					<i class="glyphicon glyphicon-heart"></i>
			</span> <span class="aui-tabBar-item-text">会员卡</span><span class="aui-tabBar-item-text">vip card</span>
			</a> <a href="/carworld_weixin/pages/page_userOrder/myOrder.html"
				class="aui-tabBar-item "> <span class="aui-tabBar-item-icon">
					<i class="glyphicon glyphicon-tasks"></i>
			</span> <span class="aui-tabBar-item-text">订单</span><span class="aui-tabBar-item-text">order</span>
			</a> <a href="/carworld_weixin/user/userPage" class="aui-tabBar-item">
				<span class="aui-tabBar-item-icon"> <i
					class="glyphicon glyphicon-user"></i>
			</span> <span class="aui-tabBar-item-text">我的</span><span class="aui-tabBar-item-text">mine</span>
			</a>
		</footer>
	</section>
	<!--补充用户的信息  -->
	<div class="modal fade" id="fillIn" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title" id="">请完善您的信息~</h4>
				</div>
				<div class="modal-body">
					<div class="form-group">
						<label >姓名</label>
						<input id="userName" type="text" class="form-control" id="userName" placeholder="请填写真实名字">
					</div>
					<div class="form-group">
						<label>手机号</label>
						<input id="mobile" type="text" class="form-control" id="mobile" placeholder="无需短信验证">
					</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary" id="validateBtn">提交更改</button>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		$(document).ready(function() {
		    		init();

					$('.swap').html($('.news_li').html());
					x = $('.news_li');
					y = $('.swap');
					h = $('.news_li li').length * 19;
					setTimeout(b, 1000);

					$(".main_img").touchSlider(
							{
								flexible : true,
								speed : 200,
								btn_prev : $("#btn_prev"),
								btn_next : $("#btn_next"),
								paging : $(".point a"),
								counter : function(e) {
									$(".point a").removeClass("on").eq(
											e.current - 1).addClass("on");
									$(".img_font span").hide()
											.eq(e.current - 1).show();
								}
							});
				});
		function init() {
            $.ajax({
                type: 'get',
                url: '/carworld_weixin/user/getUserInfo',
                success: function (data) {
                	 console.log("getUserInfo--》data",data);
                   if(data.user.mobile=="" || data.user.name =="" || data.user.mobile==null || data.user.name ==null){
                       $('#fillIn').modal();
				   }else{
					
					  // let payurl="http://food.3kkk.xyz/paymodel/ordernotes.html?uid="+data.user.id+"&cid="+ data.user.company_id;
					   let payurl="http://food.3kkk.xyz/paymodel/url/toIndex/"+data.user.id+"/"+data.user.company_id;
					   console.log("payurl",payurl);
					   $("#apayurl").attr("href",payurl);
				   }
                }
            });
        }

		function b() {
			t = parseInt(x.css('top'));
			y.css('top', '19px');
			x.animate({
				top : t - 19 + 'px'
			}, 'slow');
			if (Math.abs(t) == h - 19) {
				y.animate({
					top : '0px'
				}, 'slow');
				z = x;
				x = y;
				y = z;
			}
			setTimeout(b, 2100);
		}


        //用户补充会员信息
        $('#validateBtn').click(function() {
            var userName = $('#userName').val();
            var mobile = $('#mobile').val();
            if (userName == null) {
                alert('用户名不能为空');
                return;
            }
            if (mobile == null) {
                alert('手机号不能为空');
                return;
            }
            $.ajax({
                type: 'POST',
                url: '/carworld_weixin/user/supplyUserInfo',
                data: {
                    'name': userName,
                    'mobile': mobile,
                    'carLicense': ''
                },
                success: function (result) {
                    if (result == 'success') {
                            window.location.href = '/carworld_weixin/carworld';
                    } else {
                        alert('信息补充失败，请联系管理员~');
                        window.location.href = '/carworld_weixin/carworld';
                    }
                },
            });
        });

	</script>
</body>
</html>